// 待遇环节
export const RankThead = [
  {
    title: '当前环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkExplain',
    minWidth: 120
  },
  {
    title: '负责人',
    key: 'personInCharge',
    minWidth: 120
  },
  {
    title: '预计完成时间',
    key: 'handlingTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.handlingTime ? params.row.handlingTime.slice(0, 10) : ''
      return h('span', text)
    }
  }
]
// 社保待遇管理
export const SocialWagesThead = [
  {
    type: 'selection',
    align: 'center',
    width: 60,
    fixed: 'left'
  },
  {
    title: '姓名',
    key: 'accoutName',
    minWidth: 120,
    fixed: 'left'
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    minWidth: 200,
    fixed: 'left'
  },
  {
    title: '在职状态',
    key: 'beHiringStatus',
    minWidth: 120
  },
  {
    title: '客户名称',
    key: 'customerName',
    minWidth: 240
  },
  {
    title: '所属客服',
    key: 'serverName',
    minWidth: 120
  },
  {
    title: '参保险种',
    key: 'insuredTypeName',
    minWidth: 240
  },
  {
    title: '待遇名称',
    key: 'treatmentName',
    minWidth: 120
  },
  {
    title: '社保编号',
    key: 'securityNO',
    minWidth: 120
  },
  {
    title: '个人编号',
    key: 'personalCode',
    minWidth: 120
  },
  {
    title: '参保城市',
    key: 'areaAllName',
    minWidth: 120
  },
  {
    title: '参保时间',
    key: 'add_DeclareDate',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.add_DeclareDate ? params.row.add_DeclareDate.slice(0, 10) : ''
      return h('span', text)
    }
  },
  {
    title: '参保基数',
    key: 'declareSalary',
    minWidth: 120
  },
  {
    title: '当前环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '预计完成时间',
    key: 'handlingTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.handlingTime ? params.row.handlingTime.slice(0, 10) : ''
      return h('span', text)
    }
  },
  {
    title: '待遇状态',
    key: 'enjoyStatus',
    minWidth: 120
  },
  {
    title: '完结时间',
    key: 'completeTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.completeTime ? params.row.completeTime.slice(0, 10) : ''
      return h('span', text)
    }
  },
  {
    title: '操作',
    width: 120,
    align: 'center',
    key: 'action',
    slot: 'action',
    fixed: 'right'
  }
]

// 社保待遇审核
export const SocialWagesThead2 = [
  {
    type: 'selection',
    align: 'center',
    width: 60,
    fixed: 'left'
  },
  {
    title: '姓名',
    key: 'accoutName',
    minWidth: 120,
    fixed: 'left'
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    minWidth: 200,
    fixed: 'left'
  },
  {
    title: '在职状态',
    key: 'beHiringStatus',
    minWidth: 120
  },
  {
    title: '客户名称',
    key: 'customerName',
    minWidth: 240
  },
  {
    title: '所属客服',
    key: 'serverName',
    minWidth: 120
  },
  {
    title: '参保险种',
    key: 'insuredTypeName',
    minWidth: 240
  },
  {
    title: '待遇名称',
    key: 'treatmentName',
    minWidth: 120
  },
  {
    title: '社保编号',
    key: 'securityNO',
    minWidth: 120
  },
  {
    title: '个人编号',
    key: 'personalCode',
    minWidth: 120
  },
  {
    title: '参保城市',
    key: 'areaAllName',
    minWidth: 120
  },
  {
    title: '参保时间',
    key: 'add_DeclareDate',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.add_DeclareDate ? params.row.add_DeclareDate.slice(0, 10) : ''
      return h('span', text)
    }
  },
  // {
  //   title: '结束参保时间',
  //   key: 'reduce_DeclareDate',
  //   minWidth: 120,
  //   render: (h, params) => {
  //     const text = params.row.completeTime ? params.row.completeTime.slice(0, 10) : ''
  //     return h('span', text)
  //   }
  // },
  {
    title: '参保基数',
    key: 'declareSalary',
    minWidth: 120
  },
  {
    title: '当前环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkExplain',
    minWidth: 120
  },
  {
    title: '负责人',
    key: 'personInCharge',
    minWidth: 120
  },
  {
    title: '预计完成时间',
    key: 'handlingTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.handlingTime ? params.row.handlingTime.slice(0, 10) : ''
      return h('span', text)
    }
  },
  {
    title: '操作',
    width: 420,
    align: 'center',
    key: 'action',
    slot: 'action',
    fixed: 'right'
  }
]

// 社保待遇审核
export const SocialWagesThead3 = [
  {
    type: 'selection',
    align: 'center',
    width: 60,
    fixed: 'left'
  },
  {
    title: '姓名',
    key: 'accoutName',
    minWidth: 120,
    fixed: 'left'
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    minWidth: 200
  },
  {
    title: '在职状态',
    key: 'beHiringStatus',
    minWidth: 120
  },
  {
    title: '客户名称',
    key: 'customerName',
    minWidth: 240
  },
  {
    title: '所属客服',
    key: 'serverName',
    minWidth: 120
  },
  {
    title: '参保险种',
    key: 'insuredTypeName',
    minWidth: 240
  },
  {
    title: '待遇名称',
    key: 'treatmentName',
    minWidth: 120
  },
  {
    title: '社保编号',
    key: 'securityNO',
    minWidth: 120
  },
  {
    title: '个人编号',
    key: 'personalCode',
    minWidth: 120
  },
  {
    title: '参保城市',
    key: 'areaAllName',
    minWidth: 120
  },
  {
    title: '参保时间',
    key: 'add_DeclareDate',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.add_DeclareDate ? params.row.add_DeclareDate.slice(0, 10) : ''
      return h('span', text)
    }
  },
  // {
  //   title: '结束参保时间',
  //   key: 'reduce_DeclareDate',
  //   minWidth: 120,
  //   render: (h, params) => {
  //     const text = params.row.completeTime ? params.row.completeTime.slice(0, 10) : ''
  //     return h('span', text)
  //   }
  // },
  {
    title: '参保基数',
    key: 'declareSalary',
    minWidth: 120
  },
  {
    title: '当前环节',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkExplain',
    minWidth: 120
  },
  {
    title: '负责人',
    key: 'personInCharge',
    minWidth: 120
  },
  {
    title: '预计完成时间',
    key: 'handlingTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.handlingTime ? params.row.handlingTime.slice(0, 10) : ''
      return h('span', text)
    }
  },
  {
    title: '待遇状态',
    key: 'enjoyStatus',
    minWidth: 120
  },
  {
    title: '实际完成时间',
    key: 'completeTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.completeTime ? params.row.completeTime.slice(0, 10) : ''
      return h('span', text)
    }
  },
  {
    title: '备注',
    key: 'remarks',
    minWidth: 120
  },
  {
    title: '鉴定等级',
    key: 'appraisalGrade',
    minWidth: 120
  },
  {
    title: '待遇金额',
    key: 'treatmentAmount',
    minWidth: 120
  },
  // {
  //   title: '附件',
  //   key: 'annexData',
  //   minWidth: 220,
  //   slot: 'annices'
  // },
  {
    title: '附件',
    width: 300,
    align: 'center',
    key: 'action',
    slot: 'action',
    fixed: 'right'
  }
]

// 新增环节
export const createNodeThead = [
  {
    title: '环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkDescription',
    minWidth: 120
  },
  {
    title: '内部员工',
    key: 'ifInsideEmployee',
    minWidth: 120,
    render: (h, params) => {
      const text = params.row.ifInsideEmployee == 0 ? '否' : '是'
      return h('span', text)
    },
  },
  {
    title: '负责人',
    key: 'personInCharge',
    minWidth: 120
  },
  {
    title: '预计完成日期',
    key: 'handlingTime',
    minWidth: 160
  },
  {
    title: '操作',
    minWidth: 200,
    align: 'center',
    key: 'action',
    fixed: 'right',
    slot: 'action'
  }
]

// 编辑环节
export const editNodeThead = [
  {
    title: '环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkExplain',
    minWidth: 120
  },
  {
    title: '负责人',
    key: 'personInCharge',
    minWidth: 120
  },
  {
    title: '预计完成日期',
    key: 'handlingTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.handlingTime ? params.row.handlingTime.slice(0, 10) : ''
      return h('span', text)
    },
  },
  {
    title: '实际完成时间',
    key: 'completeTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.completeTime ? params.row.completeTime.slice(0, 10) : ''
      return h('span', text)
    },
  },
  {
    title: '备注',
    key: 'remarks',
    minWidth: 120
  },
  {
    title: '鉴定等级',
    key: 'appraisalGrade',
    minWidth: 120
  },
  {
    title: '待遇金额',
    key: 'treatmentAmount',
    minWidth: 120
  },
  {
    title: '状态',
    key: 'auditStatus',
    minWidth: 120,
    render: (h, params) => {
      const text = params.row.auditStatus == 0 ? '待审核' : params.row.auditStatus == 1 ? '已审核' : params.row.auditStatus == 2 ? '已终止' : '未知'
      return h('span', text)
    },
  },
  // {
  //   title: '附件',
  //   key: 'annexData',
  //   minWidth: 220,
  //   slot: 'annices'
  // },
  {
    title: '附件',
    minWidth: 360,
    align: 'center',
    key: 'action',
    slot: 'action'
  }
]
